//
//  WelcomeJsonData.h
//  NLProjectFrameworkDemo
//
//  Created by iosdeveloper on 2020/4/28.
//  Copyright © 2020 yj_zhang. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
@class WelComeJsonResponse,WelcomeJsonwelcomesData,WelcomeJsonwelcomesArrData,WelcomeJsonwelcomesArrData,WelcomeJsonhistoryMsgData,WelcomeJsonAgent;

@interface WelcomeJsonData : NSObject
@property(nonatomic,copy)NSString*type;
@property(nonatomic,strong)WelComeJsonResponse*payload;

@end

@interface WelComeJsonResponse : NSObject
@property(nonatomic,copy)NSString*chatId;
@property(nonatomic,copy)NSString*content;
@property(nonatomic,copy)NSString*isWelcome;
@property(nonatomic,copy)NSString*category;
@property(nonatomic,copy)NSString*from;
@property(nonatomic,copy)NSString*media;
@property(nonatomic,copy)NSString*source;
@property(nonatomic,copy)NSString*uid;
@property(nonatomic,copy)NSString*msgId;
@property(nonatomic,assign)NSTimeInterval timestamp;
@property(nonatomic,copy)NSString*type;
@property(nonatomic,copy)NSString*ua;
@property(nonatomic,strong)NSNumber*serviceGroup;
@property(nonatomic,assign)int newServiceGroupId;
@property(nonatomic,copy)NSString*agentId;
@property(nonatomic,copy)NSString*ip;
@property(nonatomic,copy)NSString* complete;
@property(nonatomic,copy)NSString* isRobot;
@property(nonatomic,copy)NSString*channelId;//后端使用 发送消息的时候在报文里面带给后台
@property(nonatomic,strong)NSArray<WelcomeJsonwelcomesData*>*welcomes;
@property(nonatomic,strong)NSArray<WelcomeJsonhistoryMsgData*>*historyMsg;
@property(nonatomic,strong)WelcomeJsonAgent*agent;

@end





@interface WelcomeJsonwelcomesData : NSArray


@end

@interface WelcomeJsonwelcomesArrData : NSObject

@property(nonatomic,copy)NSString*seq;
@property(nonatomic,copy)NSString*welComeId;
@property(nonatomic,copy)NSString*gap;
@property(nonatomic,copy)NSString*msg;

@end

@interface WelcomeJsonhistoryMsgData : NSObject
//判断咨询师和访客类型：M手动回复就是咨询师  A为自动回复就是机器人,
@property(nonatomic,copy)NSString*msgType;
//判断咨询师和访客类型：A为咨询师在cell左边显示  V为访客在cell右侧显示，R为系统消息
@property(nonatomic,copy)NSString*say_from;
//@property(nonatomic,copy)NSString*time;
@property(nonatomic,copy)NSString*isWelcome;
//@property(nonatomic,copy)NSString*say_id;
@property(nonatomic,copy)NSString*msg;//消息内容
@property(nonatomic,copy)NSString*timeStr;
//@property(nonatomic,copy)NSString*visitorId;//访客
@property(nonatomic,copy)NSString*type;//消息类型 text/img

@end

@interface WelcomeJsonAgent : NSObject
@property(nonatomic,copy)NSString*agentId;
@property(nonatomic,copy)NSString*display_name;//咨询师名字
@property(nonatomic,copy)NSString*img;//咨询师头像

@end


NS_ASSUME_NONNULL_END
